﻿using MediatR;
using THE_WIND_RISES.Common.Domans.BasicInformation;
using THE_WIND_RISES.Common.Dtos;

namespace Enterprise_Set.API.Application.Commands.Week1.Process_CRUD
{
    public class AddProcessCommand:IRequest<Result>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int ProcessId { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string ProcessNum { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; }

        /// <summary>
        /// 工作中心
        /// </summary>
        public string WorkCentre { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool ProcessState { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int ProcessAudit { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelProcess { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 工序明细表
        /// </summary>
        public List<ProcessDetail> processDetails { get; set; }
    }
}
